import '../../util/http.dart';
import 'package:flutter/material.dart';

class ContainerApi{


  BuildContext? context;

  static ContainerApi of(BuildContext? context) {
    ContainerApi containerApi = ContainerApi();
    containerApi.context = context;
    return containerApi;
  }

  /// 空托回收
  Future<dynamic> recovery(data) async{
    return ApiService.of(context).put('lgs/container/recovery', data);
  }

  /// 空托呼叫
  Future<dynamic> call(String code, String number) async{
    return ApiService.of(context).put('lgs/container/call/'+code+'/'+number, null);
  }
}